import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);

const routes = [
    {
          path: "/",
          name: "home",
          meta: {
            title: "首页"
          },	
          component: () => import("@/home/main.vue"),
		  children:[
			  { 
				path:'/weixin',
			    name:'book', 
			    component: () => import("@/home/weixingongzonghao.vue")
			  },
			  { 
				path:'/csdn',
			    name:'book', 
			    component: () => import("@/home/csdn.vue")
			  },
			  { 
				path:'/github',
			    name:'book', 
			    component: () => import("@/home/github.vue")
			  },
			  { 
				path:'/home',
			    name:'book', 
			    component: () => import("@/home/home.vue")
			  },
			  { 
				path:'/aboutme',
			    name:'book', 
			    component: () => import("@/home/aboutme.vue")
			  },
			  { 
				path:'/gongju',
			    name:'book', 
			    component: () => import("@/home/gongju.vue")
			  }
			  
			  ]
		  
    },
	{
	      path: "/login",
	      name: "home",
	      meta: {
	        title: "测试"
	      },	
	      component: () => import("@/admin/main.vue")
	},
	{
	      path: "/text",
	      name: "home",
	      meta: {
	        title: "测试"
	      },	
	      component: () => import("@/editblog/editblog.vue")
	},
	{
	      path: "/api",
	      name: "home",
	      meta: {
	        title: "测试"
	      },	
	      component: () => import("@/api/imag.vue")
	},
	{
	      path: "/img",
	      name: "home",
	      meta: {
	        title: "测试"
	      },	
	      component: () => import("@/api/imgzhuanweb.vue")
	}
];

const router = new VueRouter({
  mode: 'history', // 模式
  routes,
});

export default router;